
var session = require('session')

var host = 'https://szln.51xietong.cn:8045';
// var yrrmsHost = 'https://yrrms.51xietong.cn:22753';
var yrrmsHost = "https://mom.51xietong.cn/appsms_api";
var commonHost = "http://121.37.161.169:20001";
var loginUrl = '/api/TokenAuth/Authenticate';
var authUrl = '/api/TokenAuth/GetUserPermissions';
var apiUrl = '/api/services/app';

var constMOM = 0;
// var constWMS = 1;
var constHYMS = 2;
// 年度订单统计
var TestGetOrderNumberAndDeliveryNumberAndCompleteNumber = '/api/services/app/OrderDashboard/GetOrderNumberAndDeliveryNumberAndCompleteNumber'
// 年度每月订单统计
var TestGetOrderNumberYeearMonth = '/api/services/app/OrderDashboard/GetOrderNumberYeearMonth'
// 某月订单详情列表
var TestGetOrderNumberMonth = '/api/services/app/OrderDashboard/GetOrderNumberMonth'
// 某订单进度详情
var TestGetOrderProductionProgress = '/api/services/app/OrderDashboard/GetOrderProductionProgress'
// 供应商获取订单进度列表
var GetAllProcessingOrderDto = yrrmsHost + '/api/services/app/OutsourcingWorkflow/GetAllProcessingOrderDto'
// 供应商获取单个订单进度详情-非标件
var GetOrderProgressListById = yrrmsHost + '/api/services/app/OrderProgress/GetOrderProgressListById'
// 供应商获取单个订单进度详情-标件
var GetWeiXinOrderNode = yrrmsHost + '/api/services/app/OrderProgress/GetOrderNode'
// 供应商修改订单进度
var UpdateOrderProgress = yrrmsHost + '/api/services/app/OrderProgress/UpdateOrderProgress'
// 供应商获取采购订单列表
var GetAllProcessingOrderDto = yrrmsHost + '/api/services/app/OutsourcingWorkflow/GetAllProcessingOrderTimeStrDto'
var config = {
  service: {
    host,
    commonHost,
    yrrmsHost,
    loginUrl,
    authUrl,
    apiUrl,
    constMOM,
    // constWMS,
    constHYMS,
    TestGetOrderNumberAndDeliveryNumberAndCompleteNumber,
    TestGetOrderNumberYeearMonth,
    TestGetOrderNumberMonth,
    TestGetOrderProductionProgress,
    GetAllProcessingOrderDto,
    GetOrderProgressListById,
    GetWeiXinOrderNode,
    UpdateOrderProgress,
    GetAllProcessingOrderDto
  }
}
  
module.exports = config
